package Test7;

import java.io.*;

public class Demo1 {
    public static void main(String[] args) throws IOException {
        ObjectOutputStream oos=new ObjectOutputStream(new FileOutputStream("D:\\poem4.txt"));
        oos.writeObject(new Student(18,"GLY","Hn"));
        oos.close();
    }
}
